<?php

namespace app\lmsx\validate;
use think\Validate;

/**
 * 文章分类验证
 * @author lan
 */
class Category extends Validate
{
    //定义验证规则
    protected $rule = [
        'name|名称'  => 'require|max:25',

    ];

    //定义验证提示
    protected $message = [
        'name.max' => '文章分类名称最多不能超过25个字符',
    ];
}
